import Vue from 'vue'
import App from './App.vue'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import router from './router/index.js';
import VueAxios from 'vue-axios'
import store from './store/store.js'

 // 引入Qs，这个库是axios里面包含的，不需要再下载了
import axios from './common/js/axiosInterceptor.js'
Vue.use(VueAxios, axios)
Vue.use(ViewUI);

import VueQuillEditor from 'vue-quill-editor'
// require styles这里是富文本编辑器的样式引用
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import 'highlight.js/styles/vs2015.css'
Vue.use(VueQuillEditor, /* { default global options } */)
 
import moment from 'moment';

Vue.filter('dateformatTime', function(dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
	return moment(dataStr).format(pattern)
})
Vue.filter('dateformatDate', function(dataStr, pattern = 'YYYY-MM-DD') {
	return moment(dataStr).format(pattern)
})

Vue.config.productionTip = false

new Vue({
	router,
	store,
	render: h => h(App),
}).$mount('#app')
